package com.taotao.controller;

import com.taotao.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 李小磊 on 2017/3/14.
 */
@Controller
public class PageController {
    @Autowired
    private ItemService itemService;
    @RequestMapping("/")
    public String loginIndex(){
        return "index";
    }
    @RequestMapping("/{page}")
    public String showPage(@PathVariable  String page){
        return page;
    }
}
